package logic

import (
	"context"
	"xialou_platform/app/errorx"

	"xialou_platform/services/agent/rpc/agentClient"
	"xialou_platform/services/agent/rpc/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type AgentRateLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewAgentRateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AgentRateLogic {
	return &AgentRateLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// AgentRate 代理商设置利润率
func (l *AgentRateLogic) AgentRate(in *agentClient.AgentRateReq) (*agentClient.EmptyBody, error) {
	return nil, errorx.NewDefaultError("代理商设置利润率，请联系开发团队！")
}
